Returns one of two possible function results, depending on the logical value of the evaluated expression.
与えられた表式を評価して得られる論理値に基づいて、2 つある選択肢の 1 つを結果として返します。
IIf (Expression, ExpressionTrue, ExpressionFalse)
IIf (Expression, ExpressionTrue, ExpressionFalse)
Expression: Any expression that you want to evaluate. If the expression evaluates to True, the function returns the result of ExpressionTrue, otherwise it returns the result of ExpressionFalse.
Expression: 評価の対象とする表式。表式の評価結果が True となった場合は ExpressionTrue を返し、それ以外の場合は ExpressionFalse を返します。
ExpressionTrue, ExpressionFalse: Any expression, one of which will be returned as the function result, depending on the logical evaluation.
ExpressionTrue, ExpressionFalse: 論理判定の結果として返す表式。2 つある表式の 1 つを、判定結果に応じて返します。